//
//  soapp_config.swift
//  soapp
//
//  Created by zhu xietong on 2017/9/13.
//  Copyright © 2017年 CocoaPods. All rights reserved.
//

import Foundation
import soapp
import JoLoading

public class soapp_config {
    static func build() {

    
//        CtrStyle.default = createDefaultStyle() //设置默认的CtrStyle  与NavigationBar,statusBar 样式有关
//        CtrStyle.valid = true
//        UIViewController.__swizzing()
//        UINavigationController.__swizzing_nav()
//
        
        //全局设置每个JoTask http 头部的参数
        JoTask.headerCreator = {
            let headers = [String:String]()
            return headers
        }
    
        
        //全局设置每个JoTask http 请求的参数
        JoTask.paramsCreator = {
            let ps = [String:Any]()
            return ps
        }
        
        
        
        JoTask.debugLog = true//开启全局JoTask 网络试调打印
        WebController.tinyColor = UIColor.main_color //设置WebController 价值进度条的颜色
        
        JoTask.scheme_default = .Json(data: "info", message: "info.msg", status: "status")//全局设置JoTask网络请求最外层请求状态的解析方案
        
        //关于Pagintor协议的配置参数
        PageConfig.page_key = "page" //分页
        PageConfig.page_size_key = "pagesize"
        PageConfig.page_begin = 1
        PageConfig.is_index_page_key = false
        
        LoadingPresenterDefautLoadingClass = DefaultLoading.self//全局设置LoadingPresenter 加载控件
        
        
    }
    
}
